package com.hellobike.haxing.modules.wms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hellobike.haxing.modules.wms.entity.Device;
import com.hellobike.haxing.modules.wms.mapper.DeviceMapper;
import com.hellobike.haxing.modules.wms.service.IDeviceService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: t_wms_device
 * @Author: haxing-boot
 * @Date:   2020-02-19
 * @Version: V1.0
 */
@Service
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements IDeviceService {

    @Override
    public Device getByNo(String deviceNo) {
        Device param = new Device();
        param.setDeviceNo(deviceNo);
        Wrapper<Device> wrapper = new QueryWrapper<>(param);
        return baseMapper.selectOne(wrapper);
    }
}
